package com.njbdqn.qiy_shop.shopservices;

import java.util.List;

import com.njbdqn.qiy_shop.shopdao.QiangGouDAO;
import com.njbdqn.qiy_shop.shopentity.Commodity;
import com.njbdqn.qiy_shop.shopvo.LiJiQiangGouVO;



public class QiangGouService {
	private QiangGouDAO qdao;
	public QiangGouService(){
		qdao = new QiangGouDAO();
	}
	
	public List<LiJiQiangGouVO> resultToArray(int commodityid){
		return qdao.resultToList(commodityid);
	}
	
	public List<Commodity> resultToObject(int commodityid){
		return qdao.findById(commodityid);
	}
}
